import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/HomeView.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('@/views/AboutView.vue'),
      // children: [
      //   {
      //     path: '/dialogDemo',
      //     name: 'dialogDemo',
      //     component: () => import('@/views/Dialog/index.vue'),
      //   },
      // ],
    },
    {
      path: '/bigdata',
      name: 'bigdata',
      component: () => import('@/views/BigDataView.vue'),
    },
    {
      path: '/dialogDemo',
      name: 'dialogDemo',
      component: () => import('@/views/DialogView.vue'),
    },
  ],
})

export default router
